import Layout from '@/views/layout/Layout'

const partsStock = {
  path: '/partsStock',
  component: Layout,
  name: 'partsStock',
  alwaysShow: true,
  meta: { title: 'partsStock', icon: 'purchaseManage' },
  children: [
    // 配件采购管理
    {
      path: 'purchaseManage',
      name: 'purchaseManage',
      redirect: '/partsStock/purchaseManage/purchaseRecords',
      alwaysShow: true,
      component: () =>
        import('@/views/after-sale/purchaseManage/index'),
      meta: { title: 'purchaseManage', icon: 'purchaseManage' },
      children: [
        {
          path: 'purchaseRecords', // 采购记录
          component: () => import('@/views/after-sale/purchaseManage/purchaseRecords/purchaseRecords'),
          name: 'purchaseRecords',
          meta: { title: 'purchaseRecords' }
        },
        {
          path: 'addPurchaseRecords', // 新增采购
          component: () => import('@/views/after-sale/purchaseManage/purchaseRecords/addPurchaseRecords'),
          hidden: true,
          name: 'addPurchaseRecords',
          meta: { title: 'addPurchaseRecords' }
        },
        {
          path: 'editPurchaseRecords', // 修改采购
          component: () => import('@/views/after-sale/purchaseManage/purchaseRecords/addPurchaseRecords'),
          hidden: true,
          name: 'editPurchaseRecords',
          meta: { title: 'editPurchaseRecords' }
        },
        {
          path: 'purchaseReturn', // 采购退货
          component: () => import('@/views/after-sale/purchaseManage/purchaseReturn/purchaseReturn'),
          name: 'purchaseReturn',
          meta: { title: 'purchaseReturn' }
        },
        {
          path: 'addPurchaseReturn', // 新增退货
          component: () => import('@/views/after-sale/purchaseManage/purchaseReturn/addPurchaseReturn'),
          hidden: true,
          name: 'addPurchaseReturn',
          meta: { title: 'addPurchaseReturn' }
        },
        {
          path: 'editPurchaseReturn', // 编辑退货
          component: () => import('@/views/after-sale/purchaseManage/purchaseReturn/addPurchaseReturn'),
          hidden: true,
          name: 'editPurchaseReturn',
          meta: { title: 'editPurchaseReturn' }
        }
      ]
    },
    // 配件库房管理
    {
      path: 'partsStockManage',
      name: 'partsStockManage',
      redirect: '/partsStock/partsStockManage/inOfStockManage',
      alwaysShow: true,
      component: () =>
        import('@/views/after-sale/storehouseManage/index'),
      meta: { title: 'partsStockManage', icon: 'purchaseManage' },
      children: [
        {
          path: 'inOfStockManage',// 入库管理
          component: () => import('@/views/after-sale/storehouseManage/inOfStockManage/inOfStockManage'),
          name: 'inOfStockManage',
          meta: { title: 'inOfStockManage' }
        },
        {
          path: 'addInOfStockManage',// 新增入库
          component: () => import('@/views/after-sale/storehouseManage/inOfStockManage/addInOfStockManage'),
          name: 'addInOfStockManage',
          hidden: true,
          meta: { title: 'addInOfStockManage' }
        },
        {
          path: 'editInOfStockManage',// 编辑入库
          component: () => import('@/views/after-sale/storehouseManage/inOfStockManage/addInOfStockManage'),
          name: 'editInOfStockManage',
          hidden: true,
          meta: { title: 'editInOfStockManage' }
        },
        {
          path: 'inventoryCheck',// 库存盘点
          component: () => import('@/views/after-sale/storehouseManage/inventoryCheck/inventoryCheck'),
          name: 'inventoryCheck',
          meta: { title: 'inventoryCheck' }
        },
        {
          path: 'addInventoryCheck',// 新增库存盘点单
          component: () => import('@/views/after-sale/storehouseManage/inventoryCheck/addInventoryCheck'),
          name: 'addInventoryCheck',
          hidden: true,
          meta: { title: 'addInventoryCheck' }
        },
        {
          path: 'editInventoryCheck',// 编辑库存盘点单
          component: () => import('@/views/after-sale/storehouseManage/inventoryCheck/addInventoryCheck'),
          name: 'editInventoryCheck',
          hidden: true,
          meta: { title: 'editInventoryCheck' }
        },
        {
          path: 'outOfStockManage',// 出库管理
          component: () => import('@/views/after-sale/storehouseManage/outOfStockManage/outOfStockManage'),
          name: 'outOfStockManage',
          meta: { title: 'outOfStockManage' }
        },
        {
          path: 'addOutOfStockManage',// 新增出库
          component: () => import('@/views/after-sale/storehouseManage/outOfStockManage/addOutOfStockManage'),
          name: 'addOutOfStockManage',
          hidden: true,
          meta: { title: 'addOutOfStockManage' }
        },
        {
          path: 'editOutOfStockManage',// 编辑出库
          component: () => import('@/views/after-sale/storehouseManage/outOfStockManage/addOutOfStockManage'),
          name: 'editOutOfStockManage',
          hidden: true,
          meta: { title: 'editOutOfStockManage' }
        },
        {
          path: 'inStockManage',// 库存管理
          component: () => import('@/views/after-sale/storehouseManage/inStockManage/inStockManage'),
          name: 'inStockManage',
          meta: { title: 'inStockManage' }
        },
        {
          path: 'inStockDetailManage',// 新增出库
          component: () => import('@/views/after-sale/storehouseManage/inStockManage/inStockDetailManage'),
          name: 'inStockDetailManage',
          hidden: true,
          meta: { title: 'inStockDetailManage' }
        },
        {
          path: 'transferManage',// 调拨管理
          component: () => import('@/views/after-sale/storehouseManage/transferManage/transferManage'),
          name: 'transferManage',
          meta: { title: 'transferManage' }
        },
        {
          path: 'addTransferManage',// 新增调拨单
          component: () => import('@/views/after-sale/storehouseManage/transferManage/addTransferManage'),
          name: 'addTransferManage',
          hidden: true,
          meta: { title: 'addTransferManage' }
        },
        {
          path: 'editTransferManage',// 编辑调拨单
          component: () => import('@/views/after-sale/storehouseManage/transferManage/addTransferManage'),
          name: 'editTransferManage',
          hidden: true,
          meta: { title: 'editTransferManage' }
        }
      ]
    }
  ]
}
export default partsStock
